<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>项目管理系统</title>
    <script src="../WF/Scripts/jquery/jquery.min.js"></script>
    <script src="../WF/Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../WF/Scripts/bootstrap/js/jquery.min.js"></script>
    <script src="../WF/Scripts/config.js" type="text/javascript"></script>
    <script src="../WF/Comm/Gener.js" type="text/javascript"></script>
    <script src="../WF/Scripts/bootstrap/js/bootstrap.min.js"></script>
    <script src="layer/layer.js"></script>
    <script src="js/date.js"></script>
    <link href="css/index.css" rel="stylesheet" />
    <link href="css/reset.css" rel="stylesheet" />
</head>
<body class="main">
    <div class="top">
        <div class="time">
            <img src="image/mh/time.png" />
            <span class="nowTime"></span>
        </div>
        <div class="title">项目管理系统</div>
        <div class="out">
            <span class="outBox" onclick="logout()">
                <img src="image/mh/out.jpg">
                <span>退出</span>
            </span>
        </div>
    </div>
    <div class="bottom">
        <div class="boxT boxTHover" onclick="ToPM('pms','xmxqsb','项目需求申报')">
            <span class="static static_xmglxt"></span>
            <span class="system_name">项目需求申报</span>
        </div>
        <div class="boxT" onclick="ToPM('pms','zjzxfw','专家咨询服务')">
            <span class="static static_ghglxt"></span>
            <span class="system_name">专家咨询服务</span>
        </div>
        <div class="boxT" onclick="ToPM('pms','ywzgbm','数据统计分析')">
            <span class="static static_jxtj"></span>
            <span class="system_name">数据统计分析</span>
        </div>
        <div class="boxT" onclick="ToPM('pms','xmzxjk','项目执行监控')">
            <span class="static static_xljd"></span>
            <span class="system_name">项目执行监控</span>
        </div>
    </div>
    <div class="bottom">
        <div class="boxT" onclick="ToPM('pms','zcfgcx','政策法规查询')">
            <span class="static static_zjk"></span>
            <span class="system_name">政策法规查询</span>
        </div>
        <div class="boxT" onclick="ToPM('','xlzygx','训练资源共享')">
            <span class="static static_xlzygx"></span>
            <span class="system_name">训练资源共享</span>
        </div>
        <div class="boxT" onclick="ToPM('','cjkcpk','厂家库产品库')">
            <span class="static static_xlbz"></span>
            <span class="system_name">厂家库产品库</span>
        </div>
    </div>
    <div class="footer">技术支持：珠海高凌信息科技股份有限公司</div>
    <script src="js/pubtools.js"></script>
    <script>
        $(function () {
            var webUser = new WebUser();
            if (webUser.No == "") {
                layer.alert("登录信息丢失, 请重新登录.", {icon: 5}, function (index) {
                    SetHref("./Login.htm");
                    layer.close(index);
                });
                
            }
            if (webUser.FK_Dept == "9999") {
                var data = window.location.href;
                data = data.replace(/index.html/, "Default.htm");
                SetHref(data);
            }
            var dotype = GetQueryString("DoType");
            if (dotype == "Logout") {

                return;
            }
        })
        function ToPM(moId, systemId, moName) {

            if (moId == "pms") {
                var menuData = getMenus(systemId);
                if (menuData.System.length == undefined || menuData.System.length == 0) {
                    layer.msg("<span style='color:red;font-size:24px;'>没有取得[" + moName + "]模块访问授权!</span>");
                    return;
                }
                var data = window.location.href;
                data = data.replace(/index.html/, "Default.htm");
                window.location.href = data + "&sysNo=" + systemId;
            }
            if (systemId == 'xmtsfx') {
                var data = window.location.href;
                data = data.replace(/index.html/, "chart/screen.html");
                window.location.href = data + "&sysNo=" + systemId;
            }
            if (systemId == 'xlzygx') {
                var data = window.location.href;
                data = data.replace(/index.html/, "xlzygx.html");
                window.location.href = data;
            }
            if (systemId == 'cjkcpk') {
                var data = window.location.href;
                data = data.replace(/index.html/, "cjkcpk.html");
                window.location.href = data;
            }
        }

        function logout() {

            if (confirm("提示确定需要退出？") == false)
                return;

            var handler = new HttpHandler("BP.WF.HttpHandler.WF_Portal");
            var data = handler.DoMethodReturnString("Default_LogOut");
            data = data.replace(/Login.htm/, "Login.htm");
            window.location.href = data; // "Login.html?DoType=Logout";
        }

        var timer1 = setInterval(function () {
            var str = getYear() + '&nbsp;' + getWeekDate() + '&nbsp;' + getHours();
            $('.nowTime').html(str);
        }, 1000);
        $('.boxT').hover(function () {
            $('.boxT').removeClass('boxTHover');
            $(this).addClass("boxTHover");
        });
    </script>
</body>
</html>